
<div ng-controller="FrontDeskCtrl">
	
	<div class="page-heading">
		<ul class="breadcrumb" >
			<li><a href="javascript:;">报表管理</a></li>
			<li>绩效管理</li>
			<li class="active" >前台</li>
			<span style="margin-right:10px;"  class="btn btn-danger btn-xs pull-right " ng-show="flag" ng-click="delFlag('/performance/frontdesk/')"><i class="fa fa-times"></i> 删除 </span>
			<span style="margin-right:10px;"  class="btn btn-info btn-xs pull-right " ng-click="addFlag('#/performance/frontdesk/')"><i class="fa fa-star"></i> 收藏 </span>	
		</ul>
		
	</div>
	<!-- 页面头部  end-->

	<!--页面内容显示区域-->
	<div class="wrapper">


		<div class="row">
			<div class="col-sm-12">
				<!--表格显示区域-->
				<section class="panel">
					<!--区块头 显示表格名称和功能按钮-->
					<header class="panel-heading">
						查询条件
						<!--控制按钮-->
						<span class="tools pull-right"> <!--收起-->
							<button type="button" class="btn btn-success pull-left" ng-click="SearchData()"
								style="margin-left: 5px;">
								<i class="fa fa-search" ></i> 查询
							</button>
							<button type="button" class="btn btn-info  pull-left" ng-click="ExportData()"
								style="margin-left: 5px;">
								<i class="fa fa-table"></i> 导出EXCEL
							</button> <a href="javascript:;" class="fa fa-chevron-up form_display"></a>

						</span>
					</header>
					<!--区块body 显示表格内容-->
					<div class="panel-body form-horizontal form_hide">
						<div class="row">
							<div class="col-md-3 ">
								<div class="form-group">
									<label class="col-lg-4 col-sm-5 control-label"
										for="inputEmail1">事业部</label>
										<div class="col-lg-8 col-sm-7">
										<input type="text" id="entity_group_name"  ng-keyup="clearGroup()"  name="entity_group_name"   class="form-control select_edit form_params" />
                                            <ul class="select_list">
                                                  <li ng-repeat="e in groups" ng-click='LoadBrands(e.group_name)' val_code="{{e.group_name}}" val_name="{{e.group_name}}">{{e.group_name}}</li>
                                            </ul>  
                                            </div>
								</div>
							</div>
							
							<div class="col-md-3 ">
								<div class="form-group">
									<label class="col-lg-4 col-sm-5 control-label"
										for="inputEmail1">店面品牌</label>
									<div class="col-lg-8 col-sm-7">
										<input type="text" id="entity_brand_name" ng-keyup="clearGroupBrand()" name="entity_brand_name" class="form-control select_edit form_params" value=""/>
                                            <ul class="select_list">
                                                  <li ng-repeat="e in gBrands" ng-click='LoadEntitys(e)' val_code="{{e.brand_code}}" val_name="{{e.brand_name}}">{{e.brand_name}}</li>
                                            </ul> 
									</div>
								</div>
							</div>
							<div class="col-md-3 ">
								<div class="form-group">
									<label class="col-lg-4 col-sm-5 control-label"
										for="inputEmail1">店面信息</label>
										<div class="col-lg-8 col-sm-7">
										<input type="text" id="entity_name" name="entity_name" class="form-control select_edit form_params" value=""/>
										<input type="hidden" id="entity_code" name="entity_code"  class="form-control select_value form_params" value=""/>
                                            <ul class="select_list">
                                                  <li ng-repeat="e in entitys" ng-click='LoadEmps(e)' val_code="{{e.entity_code}}" val_name="{{e.entity_name}}">{{e.entity_name}}({{e.entity_code}})</li>
                                            </ul>   
                                      </div>
								</div>
							</div>
							
							<div class="col-md-3 ">
								<div class="form-group">
									<label class="col-lg-4 col-sm-5 control-label"
										for="inputEmail1">年度</label>
									<div class="col-lg-8 col-sm-7">
										<input name="report_year" id="report_year" type="number" min="0" onkeyup="value=value.replace(/[^\d]/g,'') " class="form-control form_params" />
									</div>
								</div>
							</div>
							
							
							<div class="col-md-3 ">
								<div class="form-group">
									<label class="col-lg-4 col-sm-5 control-label"
										for="inputEmail1">月份</label>
									<div class="col-lg-8 col-sm-7">
										<select name="report_month" id="report_month"  class="form-control form_params" >
									        <option  value="01">01</option>
											<option  value="02">02</option>
											<option value="03">03</option>
											<option  value="04">04</option>
											<option  value="05">05</option>
											<option  value="06">06</option>
											<option  value="07">07</option>
											<option  value="08">08</option>
											<option  value="09">09</option>
											<option  value="10">10</option>
											<option  value="11">11</option>
											<option  value="12">12</option>
										</select>
										
									</div>
								</div>
							</div>
							
							<div class="col-md-3" style="display: none;" id="empsDiv">
								<div class="form-group">
									<label class="col-lg-4 col-sm-5 control-label"
										for="inputEmail1">服务顾问</label>
									<div class="col-lg-8 col-sm-7">
									     <select name="emps" id="emps" multiple="multiple" class="form-control form_params">
									     <option value="">1123</option>
										 </select>
									</div>
								</div>
							</div>
							
							
						</div>
					</div>
				</section>

				<section class="panel">
					<!--区块头 显示表格名称和功能按钮-->
					<header class="panel-heading">
						前台绩效信息

						<!--控制按钮-->
						<span class="tools pull-right"> <!--收起--> <a
							href="javascript:;" class="fa fa-chevron-down"></a>
						</span>
						
					</header>
					<!--区块body 显示表格内容-->
					<div class="panel-body form-horizontal ">

						<div class="adv-table" style="overflow-x: scroll">
							<table id="FrontDeskTable"
								class="table table-striped  nowrap  dataTable no-footer table_store table-hover float_head"
								cellspacing="0" width="100%">
								<thead>
									<tr>
										<th></th>
										<th colspan="4"></th>
										<th></th>
										<th></th>
										<th colspan="4">结清台次</th>
										<th></th>
										<th colspan="3">毛利</th>
										<th colspan="2">养护品</th>
										<th colspan="2">单车质量</th>
										<th colspan="2">一般维修超期在修车</th>
										<th colspan="2">事故超期在修车</th>
										<th colspan="2">首保索赔超期在修车</th>
										<th></th>
										<th colspan="8">易损件</th>
										<th>附属油</th>
										<th></th>
										<th></th>
										<th colspan="6">事故车外拓</th>
										<th></th>
									</tr>
									<tr>
										<th ng-show="!cols.contains('index')" >序号</th>
										<th ng-show="!cols.contains('entity_code')" column="entity_code">店面编码</th>
										<th ng-show="!cols.contains('entity_name')" column="entity_name">店面名称</th>
										<th ng-show="!cols.contains('entity_brand_name')" column="entity_brand_name">品牌</th>
										<th ng-show="!cols.contains('entity_group_name')" column="entity_group_name">事业部</th>
										<th ng-show="!cols.contains('employeeName')"  column="employeeName">姓名</th>
										<th ng-show="!cols.contains('inNum')" column="inNum">结清台次</th>
										<th ng-show="!cols.contains('chargeNum')" column="chargeNum">收费台次</th>
										<th ng-show="!cols.contains('firstClaimNum')" column="firstClaimNum">首保索赔台次</th>
										<th ng-show="!cols.contains('zeroSettleNum')" column="zeroSettleNum">零结清台次</th>
										<th ng-show="!cols.contains('addNum')" column="addNum">二次增项台次</th>
										<th ng-show="!cols.contains('personalProfit')" column="personalProfit">个人毛利</th>
										<th ng-show="!cols.contains('firstRoProfit')" column="firstRoProfit">一次开单维修毛利</th>
										<th ng-show="!cols.contains('addRoProfit')" column="addRoProfit">二次增项维修毛利</th>
										<th ng-show="!cols.contains('decProfit')" column="decProfit">精品毛利</th>
										<th ng-show="!cols.contains('curPartNum')" column="curPartNum">瓶数</th>
										<th ng-show="!cols.contains('curPartProfit')" column="curPartProfit">毛利</th>
										<th ng-show="!cols.contains('singleProduction')" column="singleProduction">单车产值</th>
										<th ng-show="!cols.contains('singleProfit')" column="singleProfit">单车毛利</th>
										<th ng-show="!cols.contains('normalOverNum')" column="normalOverNum">超期在修台次</th>
										<th ng-show="!cols.contains('normalOverCost')" column="normalOverCost">超期在修成本</th>
										<th ng-show="!cols.contains('accidentOverNum')" column="accidentOverNum">超期在修台次</th>
										<th ng-show="!cols.contains('accidentOverCost')" column="accidentOverCost">超期在修成本</th>
										<th ng-show="!cols.contains('firstClaimOverNum')" column="firstClaimOverNum">超期在修台次</th>
										<th ng-show="!cols.contains('firstClaimOverCost')" column="firstClaimOverCost">超期在修成本</th>
										<th ng-show="!cols.contains('derateAmount')" column="derateAmount">折扣减免</th>
										
										<th ng-show="!cols.contains('airFilterNum')" column="airFilterNum">空气滤芯数量</th>
										<th ng-show="!cols.contains('airConditionerFilterNum')" column="airConditionerFilterNum">空调滤芯数量</th>
										<th ng-show="!cols.contains('gasolineFilterNum')" column="gasolineFilterNum">汽油滤芯数量</th>
										<th ng-show="!cols.contains('sparkPlugNum')" column="sparkPlugNum">火花塞数量</th>
										<th ng-show="!cols.contains('brakePadsNum')" column="brakePadsNum">刹车片数量</th>
										<th ng-show="!cols.contains('batteryNum')" column="batteryNum">电瓶数量</th>
										<th ng-show="!cols.contains('wiperNum')" column="wiperNum">雨刮器数量</th>
										<th ng-show="!cols.contains('wearingPartsProfit')" column="wearingPartsProfit">易损件毛利</th>
										
										<th ng-show="!cols.contains('accessoryOilProfit')" column="accessoryOilProfit">附属油毛利</th>
										
										<th ng-show="!cols.contains('settleRoOrderRate')" column="settleRoOrderRate">当月工单结清率</th>
										<th ng-show="!cols.contains('HXHBNum')" column="HXHBNum">恒信惠保销售数量</th>
										
										<th ng-show="!cols.contains('extensionDayNum')" column="extensionDayNum">外拓出勤天数</th>
										<th ng-show="!cols.contains('extensionCreateNum')" column="extensionCreateNum">外拓信息录入条数</th>
										<th ng-show="!cols.contains('extensionBackFactoryNum')" column="extensionBackFactoryNum">外拓回厂台数</th>
										<th ng-show="!cols.contains('extensionRepairRate')" column="extensionRepairRate">外拓留修率</th>
										<th ng-show="!cols.contains('extensionAmount')" column="extensionAmount">外拓产值</th>
										<th ng-show="!cols.contains('extensionRoProfit')" column="extensionRoProfit">外拓毛利</th>
										
										<th ng-show="!cols.contains('SGWXCarAverageTime')" column="SGWXCarAverageTime">事故车维修平均时长</th>
										
									</tr>
								</thead>
								<tbody>
									<tr ng-repeat="c in datas" >
										<td ng-show="!cols.contains('index')" >{{$index+1}}</td>
										<td ng-show="!cols.contains('entity_code')" column="entity_code">{{c.entity_code}}</td>
										<td ng-show="!cols.contains('entity_name')" column="entity_name">{{c.entity_name}}</td>
										<td ng-show="!cols.contains('entity_brand_name')" column="entity_brand_name">{{c.entity_brand_name}}</td>
										<td ng-show="!cols.contains('entity_group_name')" column="entity_group_name">{{c.entity_group_name}}</td>
										<td ng-show="!cols.contains('employeeName')"  column="employeeName">{{c.employeeName}}</td>
										<td ng-show="!cols.contains('inNum')" column="inNum">{{c.inNum | number:2}}</td>
										<td ng-show="!cols.contains('chargeNum')" column="chargeNum">{{c.chargeNum | number:2}}</td>
										<td ng-show="!cols.contains('firstClaimNum')" column="firstClaimNum">{{c.firstClaimNum | number:2}}</td>
										<td ng-show="!cols.contains('zeroSettleNum')" column="zeroSettleNum">{{c.zeroSettleNum | number:2}}</td>
										<td ng-show="!cols.contains('addNum')" column="addNum">{{c.addNum | number:2}}</td>
										<td ng-show="!cols.contains('personalProfit')" column="personalProfit">{{c.personalProfit | number:2}}</td>
										<td ng-show="!cols.contains('firstRoProfit')" column="firstRoProfit">{{c.firstRoProfit | number:2}}</td>
										<td ng-show="!cols.contains('addRoProfit')" column="addRoProfit">{{c.addRoProfit | number:2}}</td>
										<td ng-show="!cols.contains('decProfit')" column="decProfit">{{c.decProfit | number:2}}</td>
										<td ng-show="!cols.contains('curPartNum')" column="curPartNum">{{c.curPartNum | number:2}}</td>
										<td ng-show="!cols.contains('curPartProfit')" column="curPartProfit">{{c.curPartProfit | number:2}}</td>
										<td ng-show="!cols.contains('singleProduction')" column="singleProduction">{{c.singleProduction | number:2}}</td>
										<td ng-show="!cols.contains('singleProfit')" column="singleProfit">{{c.singleProfit | number:2}}</td>
										<td ng-show="!cols.contains('normalOverNum')" column="normalOverNum">{{c.normalOverNum | number:2}}</td>
										<td ng-show="!cols.contains('normalOverCost')" column="normalOverCost">{{c.normalOverCost | number:2}}</td>
										<td ng-show="!cols.contains('accidentOverNum')" column="accidentOverNum">{{c.accidentOverNum | number:2}}</td>
										<td ng-show="!cols.contains('accidentOverCost')" column="accidentOverCost">{{c.accidentOverCost | number:2}}</td>
										<td ng-show="!cols.contains('firstClaimOverNum')" column="firstClaimOverNum">{{c.firstClaimOverNum | number:2}}</td>
										<td ng-show="!cols.contains('firstClaimOverCost')" column="firstClaimOverCost">{{c.firstClaimOverCost | number:2}}</td>
										<td ng-show="!cols.contains('derateAmount')" column="derateAmount">{{c.derateAmount | number:2}}</td>
										
										<td ng-show="!cols.contains('airFilterNum')" column="airFilterNum">{{c.airFilterNum | number:2}}</td>
										<td ng-show="!cols.contains('airConditionerFilterNum')" column="airConditionerFilterNum">{{c.airConditionerFilterNum | number:2}}</td>
										<td ng-show="!cols.contains('gasolineFilterNum')" column="gasolineFilterNum">{{c.gasolineFilterNum | number:2}}</td>
										<td ng-show="!cols.contains('sparkPlugNum')" column="sparkPlugNum">{{c.sparkPlugNum | number:2}}</td>
										<td ng-show="!cols.contains('brakePadsNum')" column="brakePadsNum">{{c.brakePadsNum | number:2}}</td>
										<td ng-show="!cols.contains('batteryNum')" column="batteryNum">{{c.batteryNum | number:2}}</td>
										<td ng-show="!cols.contains('wiperNum')" column="wiperNum">{{c.wiperNum | number:2}}</td>
										<td ng-show="!cols.contains('wearingPartsProfit')" column="wearingPartsProfit">{{c.wearingPartsProfit | number:2}}</td>
										
										<td ng-show="!cols.contains('accessoryOilProfit')" column="accessoryOilProfit">{{c.accessoryOilProfit | number:2}}</td>
										
										<td ng-show="!cols.contains('settleRoOrderRate')" column="settleRoOrderRate">{{c.settleRoOrderRate}}</td>
										<td ng-show="!cols.contains('HXHBNum')" column="HXHBNum">{{c.HXHBNum | number:2}}</td>
										
										<td ng-show="!cols.contains('extensionDayNum')" column="extensionDayNum">{{c.extensionDayNum | number:2}}</td>
										<td ng-show="!cols.contains('extensionCreateNum')" column="extensionCreateNum">{{c.extensionCreateNum | number:2}}</td>
										<td ng-show="!cols.contains('extensionBackFactoryNum')" column="extensionBackFactoryNum">{{c.extensionBackFactoryNum | number:2}}</td>
										<td ng-show="!cols.contains('extensionRepairRate')" column="extensionRepairRate">{{c.extensionRepairRate}}</td>
										<td ng-show="!cols.contains('extensionAmount')" column="extensionAmount">{{c.extensionAmount | number:2}}</td>
										<td ng-show="!cols.contains('extensionRoProfit')" column="extensionRoProfit">{{c.extensionRoProfit | number:2 }}</th>
										
										<td ng-show="!cols.contains('SGWXCarAverageTime')" column="SGWXCarAverageTime">{{c.SGWXCarAverageTime | number:2}}</td>
									</tr>

									<tr class="tbody_last_tr" ng-show="pagination.totalItems >0" >
										<td ng-show="!cols.contains('index')" ></td>
										<td ng-show="!cols.contains('entity_code')" column="entity_code"></td>
										<td ng-show="!cols.contains('entity_name')" column="entity_name"></td>
										<td ng-show="!cols.contains('entity_brand_name')" column="entity_brand_name"></td>
										<td ng-show="!cols.contains('entity_group_name')" column="entity_group_name"></td>
										<td ng-show="!cols.contains('employeeName')"  column="employeeName"></td>
										<td ng-show="!cols.contains('inNum')" column="inNum">{{t.inNum | number:2}}</td>
										<td ng-show="!cols.contains('chargeNum')" column="chargeNum">{{t.chargeNum | number:2}}</td>
										<td ng-show="!cols.contains('firstClaimNum')" column="firstClaimNum">{{t.firstClaimNum | number:2}}</td>
										<td ng-show="!cols.contains('zeroSettleNum')" column="zeroSettleNum">{{t.zeroSettleNum | number:2}}</td>
										<td ng-show="!cols.contains('addNum')" column="addNum">{{t.addNum | number:2}}</td>
										<td ng-show="!cols.contains('personalProfit')" column="personalProfit">{{t.personalProfit | number:2}}</td>
										<td ng-show="!cols.contains('firstRoProfit')" column="firstRoProfit">{{t.firstRoProfit | number:2}}</td>
										<td ng-show="!cols.contains('addRoProfit')" column="addRoProfit">{{t.addRoProfit | number:2}}</td>
										<td ng-show="!cols.contains('decProfit')" column="decProfit">{{t.decProfit | number:2}}</td>
										<td ng-show="!cols.contains('curPartNum')" column="curPartNum">{{t.curPartNum | number:2}}</td>
										<td ng-show="!cols.contains('curPartProfit')" column="curPartProfit">{{t.curPartProfit | number:2}}</td>
										<td ng-show="!cols.contains('singleProduction')" column="singleProduction"></td>
										<td ng-show="!cols.contains('singleProfit')" column="singleProfit"></td>
										<td ng-show="!cols.contains('normalOverNum')" column="normalOverNum">{{t.normalOverNum | number:2}}</td>
										<td ng-show="!cols.contains('normalOverCost')" column="normalOverCost">{{t.normalOverCost | number:2}}</td>
										<td ng-show="!cols.contains('accidentOverNum')" column="accidentOverNum">{{t.accidentOverNum | number:2}}</td>
										<td ng-show="!cols.contains('accidentOverCost')" column="accidentOverCost">{{t.accidentOverCost | number:2}}</td>
										<td ng-show="!cols.contains('firstClaimOverNum')" column="firstClaimOverNum">{{t.firstClaimOverNum | number:2}}</td>
										<td ng-show="!cols.contains('firstClaimOverCost')" column="firstClaimOverCost">{{t.firstClaimOverCost | number:2}}</td>
										<td ng-show="!cols.contains('derateAmount')" column="derateAmount">{{t.derateAmount | number:2}}</td>
										
										<td ng-show="!cols.contains('airFilterNum')" column="airFilterNum">{{t.airFilterNum | number:2}}</td>
										<td ng-show="!cols.contains('airConditionerFilterNum')" column="airConditionerFilterNum">{{t.airConditionerFilterNum | number:2}}</td>
										<td ng-show="!cols.contains('gasolineFilterNum')" column="gasolineFilterNum">{{t.gasolineFilterNum | number:2}}</td>
										<td ng-show="!cols.contains('sparkPlugNum')" column="sparkPlugNum">{{t.sparkPlugNum | number:2}}</td>
										<td ng-show="!cols.contains('brakePadsNum')" column="brakePadsNum">{{t.brakePadsNum | number:2}}</td>
										<td ng-show="!cols.contains('batteryNum')" column="batteryNum">{{t.batteryNum | number:2}}</td>
										<td ng-show="!cols.contains('wiperNum')" column="wiperNum">{{t.wiperNum | number:2}}</td>
										<td ng-show="!cols.contains('wearingPartsProfit')" column="wearingPartsProfit">{{t.wearingPartsProfit | number:2}}</td>
										
										<td ng-show="!cols.contains('accessoryOilProfit')" column="accessoryOilProfit">{{t.accessoryOilProfit | number:2}}</td>
										
										<td ng-show="!cols.contains('settleRoOrderRate')" column="settleRoOrderRate"></td>
										<td ng-show="!cols.contains('HXHBNum')" column="HXHBNum">{{t.HXHBNum | number:2}}</td>
										
										<td ng-show="!cols.contains('extensionDayNum')" column="extensionDayNum">{{t.extensionDayNum | number:2}}</td>
										<td ng-show="!cols.contains('extensionCreateNum')" column="extensionCreateNum">{{t.extensionCreateNum | number:2}}</td>
										<td ng-show="!cols.contains('extensionBackFactoryNum')" column="extensionBackFactoryNum">{{t.extensionBackFactoryNum | number:2}}</td>
										<td ng-show="!cols.contains('extensionRepairRate')" column="extensionRepairRate"></td>
										<td ng-show="!cols.contains('extensionAmount')" column="extensionAmount">{{t.extensionAmount | number:2}}</td>
										<td ng-show="!cols.contains('extensionRoProfit')" column="extensionRoProfit">{{t.extensionRoProfit |number:2 }}</th>
										
										<td ng-show="!cols.contains('SGWXCarAverageTime')" column="SGWXCarAverageTime"></td>
										
										
									</tr>
								</tbody>
							</table>
<div class="no-items" ng-show="pagination.totalItems <= 0">暂无数据</div>
						</div>
						<tm-pagination conf="pagination"></tm-pagination>
					</div>
				</section>
				<!--表格显示区域-->

			</div>
		</div>
	</div>
	

	 
	 
</div>

<form id="export_form" action="perfo/exportFrontDesk"  method="post">
	<input type="hidden" name="keys" id="keys" />
	<input type="hidden" name="names" id="names" /> 
	<input type="hidden" name="params" id="params" />
	<input type="hidden" name="file_name" id="file_name" value="前台"/>
</form>
